package com.mjk.manager.magicapi.core.core.event;


import com.mjk.manager.magicapi.core.core.model.MagicEntity;

public class FileEvent extends MagicEvent {

    private final MagicEntity entity;

    public FileEvent(String type, EventAction action, MagicEntity entity) {
        super(type, action);
        this.entity = entity;
    }

    public FileEvent(String type, EventAction action, MagicEntity entity, String source) {
        super(type, action, source);
        this.entity = entity;
    }

    public MagicEntity getEntity() {
        return entity;
    }

}
